package didi.hcp.provider2.service;

import didi.hcp.api.SayGoodbyeService;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

@Service(version = "1.0.0")
public class SayGoodByeServiceImpl implements SayGoodbyeService {
    @Override
    public String sayGoodBye(String str) {
        String name = RpcContext.getContext().getAttachment("name");
        System.out.println("Attachment | name="+name);
        return "SayGoodBye | "+str;
    }
}
